package com.dodayum.dao;

import com.dodayum.pojo.ServiceInformation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ServiceInformationMapper {

    List<ServiceInformation> queryAll();

    List<ServiceInformation> query(ServiceInformation service);

    boolean insert(ServiceInformation serviceInformation);

    boolean deleteById(@Param("serviceId")int id);

    boolean updateById(@Param("service")ServiceInformation serviceInformation);

    ServiceInformation queryById(int serviceId);

    List<ServiceInformation> queryServiceByServiceName(String serviceName);
}
